set(CODEC_SRCS
rpc.pb.cc
proto_msg_dispatcher.cc
proto_msg_serialization.cc
)

add_library(codec SHARED ${CODEC_SRCS})
target_link_libraries(codec pthread rt glog event protobuf)


file(GLOB HEADERS "*.h")
# install(FILES ${HEADERS} DESTINATION include/codec)

install(TARGETS codec DESTINATION lib)

if(NOT CMAKE_BUILD_NO_EXAMPLES)
 add_subdirectory(tests)
endif()
